﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class orgman_models_delete : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void doe(object sender, EventArgs e)
    {
        if (Request["id"] != null)
        {
            string modelid = Request["id"].ToString();
            if (modelid != "")
            {
                bool okk = MasApp.BLL.Delete.DeleteModelAll(int.Parse(modelid));
                if (okk)
                {
                    MasApp.BLL.ResponseHelper.alert( "删除成功");
                }
                else
                {
                    MasApp.BLL.ResponseHelper.alert( "删除失败");
                }

            }
            else
            {
                MasApp.BLL.ResponseHelper.alert( "操作失败，ID为空");
            }
        }
        else
        {
            MasApp.BLL.ResponseHelper.alert( "操作失败，非法链接");
        }
    }
}
